package cn.com.surker.material.dao;

import cn.com.surker.material.entity.MainMaterialInventory;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * <p>
 * 材料盘存汇总表 Mapper 接口
 * </p>
 *
 * @author admin
 * @since 2024-12-05
 */
public interface MainMaterialInventoryDao extends BaseMapper<MainMaterialInventory> {

    /**
     * 根据统计日期或类型查询盘存汇总
     * @param orgId
     * @param today
     * @param breedType
     * @return
     */
    MainMaterialInventory findTodayBreed(Long orgId, String today, Integer breedType);

    /**
     * 查询是否存在已审核
     * @param orgId
     * @param today
     * @param isCheck
     * @param isFinance
     * @return
     */
    Integer findCheckTotal(Long orgId, String today, Integer isCheck, Integer isFinance);

}
